package com.supor.aiot.mine.api;

import com.android.baseconfig.base.BaseApiResult;
import com.android.baseconfig.base.DataApiResult;
import com.supor.aiot.common.app.Constants;
import com.supor.aiot.mine.bean.AppReleaseItem;

import java.util.List;

import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * @author Xiaozhuang
 * @date 2021/10/19
 *
 * @description App版本更新接口
 */
public interface AppReleaseService {

    /**
     *
     * 查询APP更新记录
     *
     * @return Observable<BaseApiResult<DataApiResult<List<AppReleaseItem>>>>
     */
    @GET(Constants.OSS_API + "bossTApp/listPage")
    Observable<BaseApiResult<DataApiResult<List<AppReleaseItem>>>> getAppReleaseListPage(
            @Query("appOs") String appOs, @Query("appType") String appType,
            @Query("page") int page, @Query("limit") int limit);

}
